package com.xcdh.test.mapper;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xcdh.test.entity.Many;
import com.xcdh.test.entity.One;
import com.xcdh.test.provider.ManyProvider;
import com.xcdh.test.provider.OneProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

public interface ManyMapper extends BaseMapper<Many> {
    @SelectProvider(type = ManyProvider.class, method = "queryByOneId")
    public List<JSONObject> selectByOneId(Integer id);
}
